// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** listHolidayStatistics GET /holiday-statistics */
export async function listHolidayStatisticsUsingGET(options?: { [key: string]: any }) {
  return request<API.BaseResponseListHolidayStatistics_>('/holiday-statistics', {
    method: 'GET',
    ...(options || {}),
  });
}

/** updateHolidayStatistics PUT /holiday-statistics/update */
export async function updateHolidayStatisticsUsingPUT(
  body: API.HolidayStatistics,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/holiday-statistics/update', {
    method: 'PUT',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
